package lexer
Import Path
github.com/ChrisTrenkamp/goxpath/lexer (on go.dev)
Dependency Relation
imports 5 packages, and imported by 2 packages
Package-Level Type Names (total 3)
Lexer lexes out XPath expressions
XItem is the token emitted from the parser
Typ XItemType
Val string
func Lex(xpath string) chan XItem
XItemType is the parser token types
const XItemError
const github.com/ChrisTrenkamp/goxpath/parser.Empty
Package-Level Functions (only one)
Lex an XPath expresion on the io.Reader
Package-Level Constants (total 21)
XItemAbbrAbsLocPath represents an abbreviated absolute path
XItemAbbrAxis marks an abbreviated axis specifier (just @ at this point)
XItemAbbrRelLocPath marks the start of a path expression
XItemAbsLocPath is an absolute path
XItemArgument marks a function argument
XItemAxis marks an axis specifier of a path
XItemEndFunction marks the end of a function
XItemEndPath marks the end of a path
XItemEndPredicate marks a predicate in an axis
XItemError is an error with the parser input
XItemFunction marks a function call
XItemNCName marks a namespace name in a node test
XItemNodeType marks a node type in a node test
XItemNumLit marks a numeric literal
XItemOperator marks an operator
XItemPredicate marks a predicate in an axis
XItemProcLit marks a processing-instruction literal
XItemQName marks the local name in an a node test
XItemRelLocPath represents a relative location path
XItemStrLit marks a string literal
XItemVariable marks a variable reference
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |